<#assign tit>会员信息</#assign>
<@page.html title=tit>
<script type="text/javascript">
  var _lastt = null;
  function show(t) {
    loadHtml("div_info", t+"?memberCode=${member.memberCode!}");
    var bt = getEl("bt_"+_lastt);
    if(bt) bt.className = "grey";
    _lastt = t;
    bt = getEl("bt_"+_lastt);
    if(bt) bt.className = "";
  }
  function topage(pg) {
    loadHtml("div_info", _lastt+"?memberCode=${member.memberCode!}&pageNo="+pg);
  }
</script>
<div class="search">
  <dl>
    <dd class="button"><#if member.status=0>
      <input type="button" class="grey" value="会籍合同" onclick="show('contract');" id="bt_contract" />
    <#else>
      <input type="button" class="grey" value="个人资料" onclick="show('detail');" id="bt_detail" />
      <input type="button" class="grey" value="会籍合同" onclick="show('contract');" id="bt_contract" />
      <input type="button" class="grey" value="定金合同" onclick="show('earnest');" id="bt_earnest" />
      <input type="button" class="grey" value="租箱合同" onclick="show('boxrent');" id="bt_boxrent" />
      <input type="button" class="grey" value="私教合同" onclick="show('ptcontract');" id="bt_ptcontract" />
      <input type="button" class="grey" value="商品消费" onclick="show('prodsale');" id="bt_prodsale" />
      <input type="button" class="grey" value="出入场" onclick="show('mbuse');" id="bt_mbuse" />
      <input type="button" class="grey" value="私教核销" onclick="show('ptbespeak');" id="bt_ptbespeak" />
      <input type="button" class="grey" value="客诉记录" onclick="show('complaint');" id="bt_complaint" />
      <input type="button" class="grey" value="停卡" onclick="show('stopcard');" id="bt_stopcard" />
      <input type="button" class="grey" value="补卡" onclick="show('chgcard');" id="bt_chgcard" />
    </#if>
    </dd>
  </dl>
</div>

<div id="div_info" class="kbox" style="margin-top:10px; min-width:800px; min-height:300px;"></div>
<script type="text/javascript">show('<#if member.status=0>contract<#else>detail</#if>');</script>
</@page.html>